package com.zhang.bingmei_incomeexpenditure.controller;

import com.zhang.bingmei_incomeexpenditure.entity.user.User;
import com.zhang.bingmei_incomeexpenditure.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author zsj
 * @description
 * @createDate 2025/10/19 18:12
 * @Entity com.zhang.bingmei_incomeexpenditure.controller.entity.
 */
@RestController
@RequestMapping("/user")
public class userController {

    @Resource
    private UserService userService;

    @GetMapping("/list")
    public List<User> list(){
        return userService.list();
    }

}
